package vg.modules.opener.decoders.graphml.elements;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class GraphMLGraph {
    private final int id;
    //String str_id;
    private final ArrayList<GraphMLVertex> vertices;
    private final boolean directed;

    public GraphMLGraph(int id, int graph_id, String str_id, boolean directed) {
        this.id = id;
        //this.str_id = str_id;
        this.directed = directed;
        this.vertices = new ArrayList<GraphMLVertex>();
    }
    public void addVertex(int id, String str_id) {
        vertices.add(new GraphMLVertex(id, str_id));
    }
    public int getId() {
        return id;
    }
    public boolean isDirected() {
        return directed;
    }
    
    public List<GraphMLVertex>getVertices() {
        return Collections.unmodifiableList(this.vertices);
    }
}
